package com.trimps.steps.service;

import java.util.HashMap;
import java.util.List;

import com.trimps.steps.exception.SqlOperationsException;
import com.trimps.steps.pojo.Step;
import com.trimps.steps.pojo.TotalSteps;

public interface IStepService {
	
    public List<Step> getAllSteps();
    
	public List<Step> getSteps(int currentPage, int rowPerPage);
	
	/**
	 * 获取步数
	 * @param currentPage
	 * @param rowPerPage
	 * @param map
	 * @return
	 */
	public List<Step> getSteps(int currentPage, int rowPerPage, HashMap<String, String> map);

    public int getStepCount();

    public Step getLatestStepByUserId(int id);

    public int getStepCount(HashMap<String, String> queryMap);

    public int save(Step step);

    public int saveStep(int userId, int groupId, String realyName, int stepCount, String stepDate) throws SqlOperationsException;

    public List<TotalSteps> getTotalSteps(HashMap<String, String> map);

    public int delById(String stepId);

}
